package com.gugee.ins.deploy.consumer.blogger;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySources;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication

@ComponentScan({"com.gugee.**"})
@MapperScan({"com.gugee.ins.common.dal.mapper.**","com.gugee.common.task.dal.mapper.**"})

@NacosPropertySources({
        @NacosPropertySource(dataId = "db",autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "kafka", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "internal-service", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "ins-blogger-collect", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "ins-blogger-main", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "ins-blogger-st", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "ins-media", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "ins-comment", autoRefreshed = true,groupId = "gugee"),
        @NacosPropertySource(dataId = "ins-mark", autoRefreshed = true,groupId = "gugee")
})
public class InsDataApplication {
    public static void main(String[] args) {
        SpringApplication.run(InsDataApplication.class, args);
    }
}
